//
//  SHTheSoftTableViewController.m
//  youjian03
//
//  Created by 常琼 on 14/10/30.
//  Copyright (c) 2014年 com.shouhuobao. All rights reserved.
//

#import "SHTheSoftTableViewController.h"

@interface SHTheSoftTableViewController ()<UIWebViewDelegate>
@property(nonatomic,weak) UIWebView *webView;
@end

@implementation SHTheSoftTableViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImageName:@"back" highImageName:@"back" target:self action:@selector(leftButton)];
    
    
    //"有件快递"标题
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"btn_fwtk"]];
    
    //添加webview
    UIWebView *webview = [[UIWebView alloc] init];
    webview.frame = self.view.bounds;
    [self.view addSubview:webview];
    self.webView  = webview;
    self.webView.delegate = self;
    
    
    [SHHTMLTool htmlWithName2:@"http://static1.shouhuobao.com/bd/agreement.html" andWebView:webview];
    
}

//-(void)webViewDidFinishLoad:(UIWebView *)webView
//{
//    NSString *js = @"window.onload = function(){document.body.style.backgroundColor = '#ffff00'}";
//
//    [webView stringByEvaluatingJavaScriptFromString:js];
//
//}


-(void)leftButton
{
    [self.navigationController popViewControllerAnimated:NO];
    
}

@end